# Define aliases.
alias tree='tree -a -I .git'
alias ll="exa -l --color=auto"
alias linuxl="ssh isaac@10.0.1.100"
alias v="nvim"
alias cl="clear"
alias lg="lazygit"
alias nf="clear & neofetch"
alias cg="cd ~/Git"
alias DL="conda activate PyTorchDL"
alias py="python3"
alias pyins="pip3 install"
alias pyuins="pip3 uninstall"
alias fq="export https_proxy=http://127.0.0.1:6152;export http_proxy=http://127.0.0.1:6152;export all_proxy=socks5://127.0.0.1:6153"
alias a1="ssh_tmux A100 WTH"
alias dell="ssh_tmux Dell_CUC Dell"

fish_vi_key_bindings

function ra
    if [ -z $RANGER_LEVEL ]
        command ranger $argv
    else
        exit
    end
end

function ssh_tmux
    ssh $argv[1] -t "tmux -u attach -t $argv[2] || tmux new -s $argv[2]"
end

#source ~/.config/fish/conf.d/macenv.fish

if test (uname) = Darwin
    source ~/.config/fish/conf.d/macenv.fish
else
    source ~/.config/fish/conf.d/linuxenv.fish
end

starship init fish | source
